package com.lancoo.znbkxx.net;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import io.reactivex.observers.DisposableObserver;
import okhttp3.ResponseBody;

/**
 * Create by TangJun on 2019/2/19
 */
public class BaseApi {
    public static void getBaseInfo(String key,String stuId,String token, String userID, String subjectID, DisposableObserver<ResponseBody> subscriber) {
        //Bean bean = new Bean();
        //bean.getData().setMemberId(memberId);
        //Token=1337959E-A9C0-4E5A-B002-5B9AB1578CFC&UserID=sastu255&SubjectID=C"
        Map<String,String> map = new HashMap<>();
        map.put("Key",key);
        map.put("StuID",stuId);
        map.put("Token",token);
        map.put("UserID",userID);
        map.put("SubjectID",subjectID);
        Observable observable = HttpMethods.getInstance().getHttpApi().getBaseInfo(map); //在HttpServer中
        HttpMethods.getInstance().toSubscribe(observable, subscriber);
    }
}
